package com.shangqing.system.droughtinformation.service.impl;

import com.shangqing.system.droughtinformation.entity.DroughtGrade;
import com.shangqing.system.droughtinformation.mapper.DroughtGradeMapper;
import com.shangqing.system.droughtinformation.service.IdroughtGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DroughtGradeImpl implements IdroughtGradeService {
    @Autowired
    private DroughtGradeMapper droughtGradeMapper;

    @Override
    public List<DroughtGrade> getinfo() {
        return (List<DroughtGrade>) droughtGradeMapper.getinfo();
    }


    @Override
    public List<DroughtGrade> getinfo(int id) {
        return (List<DroughtGrade>) droughtGradeMapper.getinfoById(id);
    }
}
